﻿<!--
(c) Copyright Fernando Cerqueira.
This source is subject to the Microsoft Public License (Ms-PL).
Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
All other rights reserved.
-->

    <UserControl x:Class="WindowsPhoneCommands.MainControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:res="clr-namespace:WindowsPhoneCommands"
             xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Name="MainUserControl"
             Foreground="{DynamicResource {x:Static vsfx:VsBrushes.WindowTextKey}}"
             Padding="2">
    <UserControl.Resources>
        <Image x:Key="ImgCopy" Source="/WindowsPhoneCommands;component/Resources/Transfer.ico" Width="16" Height="16" />
        <Image x:Key="ImgDelete" Source="/WindowsPhoneCommands;component/Resources/remove.ico" Width="16" Height="16"/>
        <Image x:Key="ImgDeleteFiles" Source="/WindowsPhoneCommands;component/Resources/DeleteFiles.ico" Width="16" Height="16"/>
        <Image x:Key="ImgAdd" Source="/WindowsPhoneCommands;component/Resources/Add.ico" Width="16" Height="16"/>
        <Image x:Key="ImgRefresh" Source="/WindowsPhoneCommands;component/Resources/Refresh.ico" Width="16" Height="16"/>
        <Image x:Key="ImgRun" Source="/WindowsPhoneCommands;component/Resources/Launch.ico" Width="16" Height="16"/>
        <Image x:Key="ImgNewDir" Source="/WindowsPhoneCommands;component/Resources/NewFoder.ico" Width="16" Height="16"/>
        <Image x:Key="ImgRename" Source="/WindowsPhoneCommands;component/Resources/Rename.ico" Width="16" Height="16"/>
        <Image x:Key="ImgLupa" Source="/WindowsPhoneCommands;component/Resources/lupa.png" Width="16" Height="16"/>
    </UserControl.Resources>
    <Grid x:Name="GridMain" Background="{DynamicResource {x:Static vsfx:VsBrushes.WindowKey}}" Margin="5" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Vertical" Grid.Row="0">
            <ToolBarTray x:Name="toolTray"  Background="{DynamicResource {x:Static vsfx:VsBrushes.CommandBarGradientKey}}" Margin="-7,-7,-7,3">
                <ToolBar x:Name="toolbar" ToolBarTray.IsLocked="True" ToolBar.OverflowMode="Never" 
                         Foreground="{DynamicResource {x:Static vsfx:VsBrushes.WindowTextKey}}"
                         Background="{DynamicResource {x:Static vsfx:VsBrushes.CommandBarGradientKey}}">
                    <Button Name="BntConnect" ToolTip="{Binding Source={x:Static res:Resources.XConnect}}" Padding="0,0,0,0" Click="BntConnectClick">
                        <Image Height="20" Width="20" Source="/WindowsPhoneCommands;component/Resources/Connect.png" />
                    </Button>
                    <Button Name="BntDisconnect" ToolTip="{Binding Source={x:Static res:Resources.XDisconnect}}" Padding="0,0,0,0"  Click="BntDisconnectClick" Visibility="Collapsed">
                        <Image Height="20" Width="20" Source="/WindowsPhoneCommands;component/Resources/disconnect.png" />
                    </Button>
                    <Separator x:Name="sep1" Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolboxDividerKey}}"/>
                    <Button Name="Menumanif" ToolTip="{Binding Source={x:Static res:Resources.XMenuManifest}}" Padding="0,0,0,0" Margin="3,0" Click="MenumanifClick">
                        <Image Name="ImgMenumanif"  Height="20" Width="20" Source="../Resources/manifestOff.png" />
                    </Button>
                    <Button Name="Menulang" ToolTip="{Binding Source={x:Static res:Resources.XLocalization}}" Padding="0,0,0,0" Margin="3,0" Click="MenulangClick">
                        <Image Name="ImgMenulang" Height="20" Width="20" Source="../Resources/LocationOff.png" />
                    </Button>
                    <Button Name="Menutransl" ToolTip="{Binding Source={x:Static res:Resources.XTranslate}}" Padding="0,0,0,0" Margin="3,0" Click="MenutranslClick">
                        <Image Name="ImgMenutransl" Height="20" Width="20" Source="../Resources/TranslateOff.png" />
                    </Button>
                    <Separator x:Name="sep3" Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolboxDividerKey}}"/>
                    <Button Name="UserProperties" ToolTip="{Binding Source={x:Static res:Resources.XProperties}}" Padding="0,0,0,0" Margin="3,0" Click="UserPropertiesClick">
                        <Image Height="20" Width="20" Source="../Resources/propes.PNG" />
                    </Button>
                    <Button Name="Help" ToolTip="{Binding Source={x:Static res:Resources.XHelp}}" Padding="0,0,0,0" Margin="3,0" Click="Help_Click">
                        <Image Height="20" Width="20" Source="../Resources/help_about.png" />
                    </Button>
                    <Button Name="BntUpdated" ToolTip="{Binding Source={x:Static res:Resources.XUpdatedAv}}" Padding="0,0,0,0" Click="BntUpdated_Click">
                        <TextBlock Name="UpdatedText" FontWeight="DemiBold"  Text="{Binding Source={x:Static res:Resources.XUpdated}}" />
                    </Button>
                </ToolBar>
            </ToolBarTray>
            <Border BorderThickness="0,0,0,1" BorderBrush="{DynamicResource {x:Static vsfx:VsBrushes.PanelBorderKey}}" Margin="0,0,0,5">
                <StackPanel>
                    <Grid x:Name="gridinfo">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="40"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Image x:Name="imagePhone" Stretch="None" Grid.RowSpan="3" Source="/WindowsPhoneCommands;component/Resources/emulator.ico" HorizontalAlignment="Left" />
                        <TextBlock x:Name="CelPhoneMsg" Grid.Column="1" VerticalAlignment="Bottom" FontWeight="Bold" FontSize="12" />
                        <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
                            <Image x:Name="DeviceLeft"  Stretch="Uniform" ToolTip="{Binding Source={x:Static res:Resources.XChangeDevice}}" Source="/WindowsPhoneCommands;component/Resources/Rotate.png" VerticalAlignment="Center" MouseLeftButtonUp="DeviceLeftMouseLefttButtonUp" Width="20" Height="20" MouseEnter="DeviceLeftMouseEnter" MouseLeave="DeviceLeftMouseLeave" />
                            <TextBlock x:Name="CelPhoneManufature" FontWeight="Bold" FontSize="11" Margin="5,0,0,0" VerticalAlignment="Center" ToolTip="{Binding Source={x:Static res:Resources.XChangeDevice}}" MouseLeftButtonUp="DeviceLeftMouseLefttButtonUp" MouseEnter="DeviceLeftMouseEnter" MouseLeave="DeviceLeftMouseLeave"/>
                            <TextBlock x:Name="CelPhoneVersion" Margin="10,0,0,0" FontWeight="Bold" FontSize="11"  VerticalAlignment="Center"/>
                        </StackPanel>
                        <ProgressBar x:Name="BuildProgressBar" Grid.Row="2" Grid.Column="1" 
                             Minimum="0" Maximum="1" Value="0.0" Height="5" VerticalAlignment="Stretch" Visibility="Hidden" />
                    </Grid>
                    <TextBlock x:Name="CelPhoneMsgErro" TextWrapping="Wrap" Margin="0,5" Foreground="Red" FontWeight="Normal" FontSize="11" Visibility="Collapsed" />
                </StackPanel>
            </Border>
        </StackPanel>
        <ScrollViewer Grid.Row="1" x:Name="ScroolMain" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
            <StackPanel x:Name="InstalleddApp" Visibility="Collapsed">
                <StackPanel Orientation="Horizontal">
                    <Image Height="16" Width="16" Source="/WindowsPhoneCommands;component/Resources/XapDeploy.ico" VerticalAlignment="Center" ToolTip="{Binding Source={x:Static res:Resources.XDeployTooltip}}" MouseLeftButtonUp="XapDeployDialogMouseLeftButtonUp" />
                    <TextBlock x:Name="InstalledTitle" FontWeight="Bold" MouseLeave="ActselectMouseLeave" MouseEnter="ActselectMouseEnter" FontSize="12" ToolTip="{Binding Source={x:Static res:Resources.XDeployTooltip}}" Margin="5,0,0,0" VerticalAlignment="Center" MouseLeftButtonUp="XapDeployDialogMouseLeftButtonUp" />
                </StackPanel>
                <StackPanel Orientation="Horizontal"  Margin="0,10,0,5" >
                    <Image Margin="0,0,2,0" Stretch="None" Source="/WindowsPhoneCommands;component/Resources/ImgCheck.png" VerticalAlignment="Center"  />
                    <TextBlock x:Name="ActCopysel" FontWeight="Bold" Text="{Binding Source={x:Static res:Resources.XCopySelItems}}" Margin="0" MouseEnter="ActselectMouseEnter" MouseLeave="ActselectMouseLeave" MouseLeftButtonUp="ActCopyselMouseLeftButtonUp" ToolTip="{Binding Source={x:Static res:Resources.XActTooltipCopSel}}" IsEnabled="False" VerticalAlignment="Center"></TextBlock>
                    <Image Margin="20,0,2,0" Stretch="None" Source="/WindowsPhoneCommands;component/Resources/ImgCheck.png" VerticalAlignment="Center" />
                    <TextBlock x:Name="ActDeletesel" FontWeight="Bold" Text="{Binding Source={x:Static res:Resources.XDeleteSelItems}}" Margin="0" MouseEnter="ActselectMouseEnter" MouseLeave="ActselectMouseLeave" MouseLeftButtonUp="ActDeleteselMouseLeftButtonUp" ToolTip="{Binding Source={x:Static res:Resources.XActTooltipDelSel}}" IsEnabled="False" VerticalAlignment="Center"></TextBlock>
                </StackPanel>
                <TreeView x:Name="TreeView" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" Margin="0,5,0,0" IsTabStop="False" UseLayoutRounding="True">
                </TreeView>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
